/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-1-9 下午2:46 Created by lyyang
 */
package com.jade.bss.business.groupon;

import java.util.List;

import com.jade.bss.base.BssException;

/**
 * 团购嗅探器
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-1-9 下午2:46
 */
public abstract class Sniffer<E extends GrouponWrap>
{
    //哪类的渠道,例如:大众点评,美团等等
    private String channel;

    public abstract List<Groupon> find(String ownerId, String ownerType, String city, String keyword)
            throws BssException;

    public abstract Groupon unwrap(String ownerId, String ownerType, E wrap);

    public String getChannel()
    {
        return channel;
    }

    public void setChannel(String channel)
    {
        this.channel = channel;
    }
}
